import api from '../api.js';

const getListAsync = async (data) => {
    return await api.postWithToken({
        command: 'I_ProjectJob_GetReports',
        data
    });
};

const reportAsync = async (data) => {
    return await api.postWithToken({
        command: 'I_ProjectJob_Report',
        data
    });
};

const pauseAsync = async (data) => {
    return await api.postWithToken({
        command: 'I_ProjectJob_Pause',
        data
    });
};

const CancelAsync = async (data) => {
    return await api.postWithToken({
        command: 'I_ProjectJob_Cancel',
        data
    });
};

const CompleteAsync = async (data) => {
    return await api.postWithToken({
        command: 'I_ProjectJob_Complete',
        data
    });
};



export default {
    getListAsync,
    reportAsync,
    pauseAsync,
    CancelAsync,
    CompleteAsync
}